<%@page import="com.hgl.entity.Hgl"%>
<%@page import="java.util.function.Supplier"%>
<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.List"%>
<%@ page language="java" pageEncoding="UTF-8"%><!DOCTYPE html>
<html>
  <head>
    <title></title>
	<jsp:include page="/admin/head.jsp"/>
  </head>
  <body>
	<jsp:include page="/admin/header.jsp"/>
	<jsp:include page="/admin/left-menu.jsp"><jsp:param value="1" name="index"/></jsp:include>
	<jsp:include page="/admin/footer.jsp"/>



    <!--中间-->

      <nav aria-label="breadcrumb">
        <ol class="breadcrumb">
          <li class="breadcrumb-item">管理首页</li>
          <li class="breadcrumb-item">系统中心</li>
          <li class="breadcrumb-item">用户管理</li>
          <li class="breadcrumb-item active">添加用户</li>
        </ol>
      </nav>
		      <div class="card container-md">
        <div class="card-body">
          <form name="regForm" action="admin/user-add.let" method="post">
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>用户名</label>
              <div class="col-sm-9">
                <input disabled="disabled" required="required" pattern="^[\u4100-\u9fa5]{2,8}$"name="hglName" type="text" placeholder="由2到8个汉字组成"
                  title="由2到8个汉字组成" class="form-control" value="${requestScope.hgl.hglName }">
              </div>
            </div>

            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger">*</b>成绩</label>
              <div class="col-sm-9">
                <input disabled="disabled" required="required" name="hglGrade"  placeholder="两位数字" title="由2位数字组成"
                  class="form-control" value="${requestScope.hgl.hglGrade }">
              </div>
            </div>

            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right"><b class="text-danger"></b>手机号码</label>
              <div class="col-sm-9">
              <input disabled="disabled" required="required" name="hglGrade"  placeholder="十一位手机号码" class="form-control"
                  value="${requestScope.hgl.hglTel }">
              </div>
            </div>
         
            
            <div class="form-group row">
              <label class="col-sm-3 col-form-label text-right">出生日期</label>
              <div class="col-sm-9">
               <input disabled="disabled" type="date" name="hglBirth"  class="form-control" style="width:auto;"value="${requestScope.hgl.hglBirth }"/>
              </div>
            </div>

           

           


            <div class="form-group row">
              <div class="col-sm-9 offset-sm-3">
                <button class="btn btn-primary" type="button" onclick="history.go(-1);" ><a href="admin/news-list.let">返回 </a>  </button>
              </div>
            </div>

          </form>
        </div>
      </div>
    </section>
    
  </body>
</html>
<%!
	//private  SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm");
private ThreadLocal<SimpleDateFormat> format = ThreadLocal.withInitial(new Supplier<SimpleDateFormat>(){
	public SimpleDateFormat get(){
		return new SimpleDateFormat("yyyy-MM-dd");
	}
});

private String format(Date date){
	if(date==null){
		return "-";
	} else {
		return format.get().format(date);
	}
}

private ThreadLocal<SimpleDateFormat> format1 = ThreadLocal.withInitial(new Supplier<SimpleDateFormat>(){
	public SimpleDateFormat get(){
		return new SimpleDateFormat("yyyy-MM-dd HH:mm");
	}
});

private String format1(Date date){
	if(date==null){
		return "-";
	} else {
		return format1.get().format(date);
	}
}

%>
